/**
 * Description:
 * Class Name:Lambda_for_two_abstract_interface
 * Date:2022/2/11 16:51
 *
 * @author LTisme
 * @version JAVA17
 */
package 疯狂Java讲义.第6章_面向对象_下._6_8_Java11增强的lambda表达式._6_8_2_Lambda表达式与函数式接口;

interface biinter{
    void test();
    // 如果不是只有一个抽象方法的接口会出现编译错误！
//    void print();
}

public class Lambda_for_two_abstract_interface {
    public void pp(biinter x){}
    public static void main(String[] args) {
        var xx = new Lambda_for_two_abstract_interface();
        xx.pp(() -> System.out.println("hh"));
    }
}
